using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace Slqj.Data
{
	public static class TableViewXYZDafaultTicketList
	{
		public const string Table = "View_XYZDafaultTicketList";
		public const string XYZDafaultTicketListID = "XYZDafaultTicketListID";
		public const string TicketsID = "TicketsID";
		public const string IsEnabled = "IsEnabled";
		public const string Description = "Description";
		public const string Sort = "Sort";
		public const string Creater = "Creater";
		public const string CreatedBy = "CreatedBy";
		public const string Created = "Created";
		public const string Modified = "Modified";
		public const string ModifiedBy = "ModifiedBy";
		public const string ModifiedByID = "ModifiedByID";
		public const string TicketsName = "TicketsName";
		public const string OriginalPrice = "OriginalPrice";
		public const string SettlementPrice = "SettlementPrice";
		public const string SalesGuidePrice = "SalesGuidePrice";
		public const string WeekdaysPrice = "WeekdaysPrice";
		public const string WeekendPrice = "WeekendPrice";
		public const string HolidayPrice = "HolidayPrice";
		public const string WeekdaysPriceSettled = "WeekdaysPriceSettled";
		public const string WeekendPriceSettled = "WeekendPriceSettled";
		public const string HolidayPriceSettled = "HolidayPriceSettled";
		public const string SystemWeekendProfit = "SystemWeekendProfit";
		public const string SystemHolidayProfit = "SystemHolidayProfit";
		public const string Profit = "Profit";
		public const string SystemAmount = "SystemAmount";
		public const string AttractionsAmount = "AttractionsAmount";
		public const string TicketStatus = "TicketStatus";
		public const string AttractionsName = "AttractionsName";
		public const string ImageUrl = "ImageUrl";
		public const string AttractionStatus = "AttractionStatus";
		public const string AttractionsID = "AttractionsID";
		public const string TicketTypeID = "TicketTypeID";
		public const string ImageSizeUrl = "ImageSizeUrl";
	}
	
	[Serializable]
	public class BaseViewXYZDafaultTicketList
		: IDbSessionEntity, IJsonClass
	{
		int m_XYZDafaultTicketListID;
		/// <summary>
        /// 
        /// </summary>
        public int XYZDafaultTicketListID
        {
            get { return m_XYZDafaultTicketListID; }
            set { m_XYZDafaultTicketListID = value; }
        }
		
		int m_TicketsID;
		/// <summary>
        /// 
        /// </summary>
        public int TicketsID
        {
            get { return m_TicketsID; }
            set { m_TicketsID = value; }
        }
		
		bool m_IsEnabled;
		/// <summary>
        /// 
        /// </summary>
        public bool IsEnabled
        {
            get { return m_IsEnabled; }
            set { m_IsEnabled = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		int m_Sort;
		/// <summary>
        /// 
        /// </summary>
        public int Sort
        {
            get { return m_Sort; }
            set { m_Sort = value; }
        }
		
		int m_Creater;
		/// <summary>
        /// 
        /// </summary>
        public int Creater
        {
            get { return m_Creater; }
            set { m_Creater = value; }
        }
		
		string m_CreatedBy;
		/// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            get { return m_CreatedBy; }
            set { m_CreatedBy = value; }
        }
		
		DateTime m_Created;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Created
        {
            get { return m_Created; }
            set { m_Created = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		string m_ModifiedBy;
		/// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            get { return m_ModifiedBy; }
            set { m_ModifiedBy = value; }
        }
		
		int? m_ModifiedByID;
		/// <summary>
        /// 
        /// </summary>
        public int? ModifiedByID
        {
            get { return m_ModifiedByID; }
            set { m_ModifiedByID = value; }
        }
		
		string m_TicketsName;
		/// <summary>
        /// 
        /// </summary>
        public string TicketsName
        {
            get { return m_TicketsName; }
            set { m_TicketsName = value; }
        }
		
		double m_OriginalPrice;
		/// <summary>
        /// 
        /// </summary>
        public double OriginalPrice
        {
            get { return m_OriginalPrice; }
            set { m_OriginalPrice = value; }
        }
		
		double m_SettlementPrice;
		/// <summary>
        /// 
        /// </summary>
        public double SettlementPrice
        {
            get { return m_SettlementPrice; }
            set { m_SettlementPrice = value; }
        }
		
		double m_SalesGuidePrice;
		/// <summary>
        /// 
        /// </summary>
        public double SalesGuidePrice
        {
            get { return m_SalesGuidePrice; }
            set { m_SalesGuidePrice = value; }
        }
		
		double m_WeekdaysPrice;
		/// <summary>
        /// 
        /// </summary>
        public double WeekdaysPrice
        {
            get { return m_WeekdaysPrice; }
            set { m_WeekdaysPrice = value; }
        }
		
		double m_WeekendPrice;
		/// <summary>
        /// 
        /// </summary>
        public double WeekendPrice
        {
            get { return m_WeekendPrice; }
            set { m_WeekendPrice = value; }
        }
		
		double m_HolidayPrice;
		/// <summary>
        /// 
        /// </summary>
        public double HolidayPrice
        {
            get { return m_HolidayPrice; }
            set { m_HolidayPrice = value; }
        }
		
		double m_WeekdaysPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double WeekdaysPriceSettled
        {
            get { return m_WeekdaysPriceSettled; }
            set { m_WeekdaysPriceSettled = value; }
        }
		
		double m_WeekendPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double WeekendPriceSettled
        {
            get { return m_WeekendPriceSettled; }
            set { m_WeekendPriceSettled = value; }
        }
		
		double m_HolidayPriceSettled;
		/// <summary>
        /// 
        /// </summary>
        public double HolidayPriceSettled
        {
            get { return m_HolidayPriceSettled; }
            set { m_HolidayPriceSettled = value; }
        }
		
		double m_SystemWeekendProfit;
		/// <summary>
        /// 
        /// </summary>
        public double SystemWeekendProfit
        {
            get { return m_SystemWeekendProfit; }
            set { m_SystemWeekendProfit = value; }
        }
		
		double m_SystemHolidayProfit;
		/// <summary>
        /// 
        /// </summary>
        public double SystemHolidayProfit
        {
            get { return m_SystemHolidayProfit; }
            set { m_SystemHolidayProfit = value; }
        }
		
		double m_Profit;
		/// <summary>
        /// 
        /// </summary>
        public double Profit
        {
            get { return m_Profit; }
            set { m_Profit = value; }
        }
		
		double m_SystemAmount;
		/// <summary>
        /// 
        /// </summary>
        public double SystemAmount
        {
            get { return m_SystemAmount; }
            set { m_SystemAmount = value; }
        }
		
		double m_AttractionsAmount;
		/// <summary>
        /// 
        /// </summary>
        public double AttractionsAmount
        {
            get { return m_AttractionsAmount; }
            set { m_AttractionsAmount = value; }
        }
		
		int m_TicketStatus;
		/// <summary>
        /// 
        /// </summary>
        public int TicketStatus
        {
            get { return m_TicketStatus; }
            set { m_TicketStatus = value; }
        }
		
		string m_AttractionsName;
		/// <summary>
        /// 
        /// </summary>
        public string AttractionsName
        {
            get { return m_AttractionsName; }
            set { m_AttractionsName = value; }
        }
		
		string m_ImageUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageUrl
        {
            get { return m_ImageUrl; }
            set { m_ImageUrl = value; }
        }
		
		int? m_AttractionStatus;
		/// <summary>
        /// 
        /// </summary>
        public int? AttractionStatus
        {
            get { return m_AttractionStatus; }
            set { m_AttractionStatus = value; }
        }
		
		int? m_AttractionsID;
		/// <summary>
        /// 
        /// </summary>
        public int? AttractionsID
        {
            get { return m_AttractionsID; }
            set { m_AttractionsID = value; }
        }
		
		int? m_TicketTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? TicketTypeID
        {
            get { return m_TicketTypeID; }
            set { m_TicketTypeID = value; }
        }
		
		string m_ImageSizeUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageSizeUrl
        {
            get { return m_ImageSizeUrl; }
            set { m_ImageSizeUrl = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_XYZDafaultTicketListID = reader[TableViewXYZDafaultTicketList.XYZDafaultTicketListID];
            m_TicketsID = reader[TableViewXYZDafaultTicketList.TicketsID];
            m_IsEnabled = reader[TableViewXYZDafaultTicketList.IsEnabled];
            m_Description = reader[TableViewXYZDafaultTicketList.Description];
            m_Sort = reader[TableViewXYZDafaultTicketList.Sort];
            m_Creater = reader[TableViewXYZDafaultTicketList.Creater];
            m_CreatedBy = reader[TableViewXYZDafaultTicketList.CreatedBy];
            m_Created = reader[TableViewXYZDafaultTicketList.Created];
            m_Modified = reader[TableViewXYZDafaultTicketList.Modified];
            m_ModifiedBy = reader[TableViewXYZDafaultTicketList.ModifiedBy];
            m_ModifiedByID = reader[TableViewXYZDafaultTicketList.ModifiedByID];
            m_TicketsName = reader[TableViewXYZDafaultTicketList.TicketsName];
            m_OriginalPrice = reader[TableViewXYZDafaultTicketList.OriginalPrice];
            m_SettlementPrice = reader[TableViewXYZDafaultTicketList.SettlementPrice];
            m_SalesGuidePrice = reader[TableViewXYZDafaultTicketList.SalesGuidePrice];
            m_WeekdaysPrice = reader[TableViewXYZDafaultTicketList.WeekdaysPrice];
            m_WeekendPrice = reader[TableViewXYZDafaultTicketList.WeekendPrice];
            m_HolidayPrice = reader[TableViewXYZDafaultTicketList.HolidayPrice];
            m_WeekdaysPriceSettled = reader[TableViewXYZDafaultTicketList.WeekdaysPriceSettled];
            m_WeekendPriceSettled = reader[TableViewXYZDafaultTicketList.WeekendPriceSettled];
            m_HolidayPriceSettled = reader[TableViewXYZDafaultTicketList.HolidayPriceSettled];
            m_SystemWeekendProfit = reader[TableViewXYZDafaultTicketList.SystemWeekendProfit];
            m_SystemHolidayProfit = reader[TableViewXYZDafaultTicketList.SystemHolidayProfit];
            m_Profit = reader[TableViewXYZDafaultTicketList.Profit];
            m_SystemAmount = reader[TableViewXYZDafaultTicketList.SystemAmount];
            m_AttractionsAmount = reader[TableViewXYZDafaultTicketList.AttractionsAmount];
            m_TicketStatus = reader[TableViewXYZDafaultTicketList.TicketStatus];
            m_AttractionsName = reader[TableViewXYZDafaultTicketList.AttractionsName];
            m_ImageUrl = reader[TableViewXYZDafaultTicketList.ImageUrl];
            m_AttractionStatus = reader[TableViewXYZDafaultTicketList.AttractionStatus];
            m_AttractionsID = reader[TableViewXYZDafaultTicketList.AttractionsID];
            m_TicketTypeID = reader[TableViewXYZDafaultTicketList.TicketTypeID];
            m_ImageSizeUrl = reader[TableViewXYZDafaultTicketList.ImageSizeUrl];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewXYZDafaultTicketList.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_XYZDafaultTicketListID = hashToRead["XYZDafaultTicketListID"];
			 
             m_TicketsID = hashToRead["TicketsID"];
			 
             m_IsEnabled = hashToRead["IsEnabled"];
			 
             m_Description = hashToRead["Description"];
			 
             m_Sort = hashToRead["Sort"];
			 
             m_Creater = hashToRead["Creater"];
			 
             m_CreatedBy = hashToRead["CreatedBy"];
			 
             m_Created = hashToRead["Created"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_ModifiedBy = hashToRead["ModifiedBy"];
			 
             m_ModifiedByID = hashToRead["ModifiedByID"];
			 
             m_TicketsName = hashToRead["TicketsName"];
			 
             m_OriginalPrice = hashToRead["OriginalPrice"];
			 
             m_SettlementPrice = hashToRead["SettlementPrice"];
			 
             m_SalesGuidePrice = hashToRead["SalesGuidePrice"];
			 
             m_WeekdaysPrice = hashToRead["WeekdaysPrice"];
			 
             m_WeekendPrice = hashToRead["WeekendPrice"];
			 
             m_HolidayPrice = hashToRead["HolidayPrice"];
			 
             m_WeekdaysPriceSettled = hashToRead["WeekdaysPriceSettled"];
			 
             m_WeekendPriceSettled = hashToRead["WeekendPriceSettled"];
			 
             m_HolidayPriceSettled = hashToRead["HolidayPriceSettled"];
			 
             m_SystemWeekendProfit = hashToRead["SystemWeekendProfit"];
			 
             m_SystemHolidayProfit = hashToRead["SystemHolidayProfit"];
			 
             m_Profit = hashToRead["Profit"];
			 
             m_SystemAmount = hashToRead["SystemAmount"];
			 
             m_AttractionsAmount = hashToRead["AttractionsAmount"];
			 
             m_TicketStatus = hashToRead["TicketStatus"];
			 
             m_AttractionsName = hashToRead["AttractionsName"];
			 
             m_ImageUrl = hashToRead["ImageUrl"];
			 
             m_AttractionStatus = hashToRead["AttractionStatus"];
			 
             m_AttractionsID = hashToRead["AttractionsID"];
			 
             m_TicketTypeID = hashToRead["TicketTypeID"];
			 
             m_ImageSizeUrl = hashToRead["ImageSizeUrl"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["XYZDafaultTicketListID"] = XYZDafaultTicketListID;
			
            hashToFill["TicketsID"] = TicketsID;
			
            hashToFill["IsEnabled"] = IsEnabled;
			
            hashToFill["Description"] = Description;
			
            hashToFill["Sort"] = Sort;
			
            hashToFill["Creater"] = Creater;
			
            hashToFill["CreatedBy"] = CreatedBy;
			
            hashToFill["Created"] = Created;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["ModifiedBy"] = ModifiedBy;
			
            hashToFill["ModifiedByID"] = ModifiedByID;
			
            hashToFill["TicketsName"] = TicketsName;
			
            hashToFill["OriginalPrice"] = OriginalPrice;
			
            hashToFill["SettlementPrice"] = SettlementPrice;
			
            hashToFill["SalesGuidePrice"] = SalesGuidePrice;
			
            hashToFill["WeekdaysPrice"] = WeekdaysPrice;
			
            hashToFill["WeekendPrice"] = WeekendPrice;
			
            hashToFill["HolidayPrice"] = HolidayPrice;
			
            hashToFill["WeekdaysPriceSettled"] = WeekdaysPriceSettled;
			
            hashToFill["WeekendPriceSettled"] = WeekendPriceSettled;
			
            hashToFill["HolidayPriceSettled"] = HolidayPriceSettled;
			
            hashToFill["SystemWeekendProfit"] = SystemWeekendProfit;
			
            hashToFill["SystemHolidayProfit"] = SystemHolidayProfit;
			
            hashToFill["Profit"] = Profit;
			
            hashToFill["SystemAmount"] = SystemAmount;
			
            hashToFill["AttractionsAmount"] = AttractionsAmount;
			
            hashToFill["TicketStatus"] = TicketStatus;
			
            hashToFill["AttractionsName"] = AttractionsName;
			
            hashToFill["ImageUrl"] = ImageUrl;
			
            hashToFill["AttractionStatus"] = AttractionStatus;
			
            hashToFill["AttractionsID"] = AttractionsID;
			
            hashToFill["TicketTypeID"] = TicketTypeID;
			
            hashToFill["ImageSizeUrl"] = ImageSizeUrl;
			
        }

        #endregion
		
	}
}
